/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.softwareprincipals.lsp.violate.model;

import za.ac.cput.assignment2.softwareprincipals.lsp.violate.service.House;

/**
 *
 * @author Matthew
 */
public class NewHouse implements House {

    protected int people;
    protected boolean paid;

    public NewHouse(int people, boolean paid) {
        this.people = people;
        this.paid = paid;
    }

    public NewHouse() {
    }

    public boolean isPaid() {
        return paid;
    }

    public void setPaid(boolean paid) {
        this.paid = paid;
    }

    public int getPeople() {
        return people;
    }

    public void setPeople(int people) {
        this.people = people;
    }
    
    @Override
    public boolean occupied(int people) {
        this.people=people;
        return true;
    }

    @Override
    public boolean notOccupied() {
        if(people>0)
            return true;
        else
            return false;
    }
    
}
